package com.ms.exmaple.orm.entity;

import com.ms.orm.annotation.ID;
import com.ms.orm.annotation.TableField;
import com.ms.orm.annotation.TableName;
import com.ms.orm.constants.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zdh
 */
@Data
@TableName(value = "user")
public class User implements Serializable {

    @ID(type = IdType.AUTO)

//    @ID(type = IdType.NONE)
    private Long id;

    private String name;

    private Integer age;

    @TableField(exist = false)
    private String department_name;
}
